import request from '@/utils/request'

// 查询长城三维文物列表
export function listRelic(query) {
  return request({
    url: '/gwRelic/list',
    method: 'get',
    params: query
  })
}

// 查询长城三维文物详细
export function getRelic(id) {
  return request({
    url: '/gwRelic/' + id,
    method: 'get'
  })
}

// 新增长城三维文物
export function addRelic(data) {
  return request({
    url: '/gwRelic',
    method: 'put',
    data: data
  })
}

// 修改长城三维文物
export function updateRelic(data) {
  return request({
    url: '/gwRelic',
    method: 'put',
    data: data
  })
}

// 删除长城三维文物
export function delRelic(id) {
  return request({
    url: '/gwRelic' + id,
    method: 'delete'
  })
}

//查询馆藏单位
export function getType(){
  return request({
      url: 'collection/list',
      meththod: 'get',
  })
}

export function getInfos(){
  return request({
    url: '/gwRelic/info',
    meththod: 'get',
})
}

export function getPqls(){
  return request({
    url: '/gwRelic/pqlList',
    meththod: 'get',
})
}
